
import 'package:flutter/material.dart';

class ButtonShow extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Button Show"),
      ),
      body:Center(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              child: Text("this is a RaisedButton"),
              textColor: Colors.red,
              onPressed: (){},
              color: Colors.blue,
            ),
            FlatButton(
              child: Text("this is a FlatButton"),
              textColor: Colors.red,
              onPressed: (){},
            ),
            OutlineButton(
              child: Text("this is a OutlineButton"),
              textColor: Colors.red,
              onPressed: (){},
            ),
            IconButton(
              icon: Icon(Icons.favorite_border),
              onPressed: (){},
            ),
            OutlineButton.icon(
                onPressed: (){},
                icon: Icon(Icons.send),
                label: Text("起飞")
            ),
            FlatButton(
              color: Colors.green,
              //highlightColor: Colors.green[700],
              colorBrightness: Brightness.dark,
              splashColor: Colors.red,
              child: Text("ButtonButtonButtonButton"),
              shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10.0)),
              onPressed: (){},
            ),
            RaisedButton(
              color: Colors.green,
              //highlightColor: Colors.green[700],
              colorBrightness: Brightness.dark,
              splashColor: Colors.red,
              child: Text("ButtonButtonButtonButton"),
              shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10.0)),
              onPressed: (){},
            ),
          ],
        ),
      )
    );
  }

}